<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>基本设置 &gt; 配送管理 &gt; 快递运费模板</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		
		#if($cType==1)
		<div class="actions" ><a href="/expfeeTemplate/add" class="btn white ajaxify"><i class="fa fa-plus"></i> 新增 </a></div>
		#end
    </div>
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
				#foreach($item in $pageExpfeeTemplate.result)
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<td>
		   		 				<table class="table table-striped table-bordered">
		   		 					#if($item.calcTye==1 ) 
										<tr>
											<td>配送地区</td>
											<td>首重（kg）</td>
											<td>运费（¥）</td>
											<td>续重（kg）</td>
											<td>续重运费（¥）</td>
										</tr>
										#set($cityFees = $cityFeeMap.get($item))
										#foreach($cityFee in $cityFees)
										<tr>
											<td>$cityFee.cIds</td>
											<td>$cityFee.fquality</td>
											<td>$cityFee.fqFee</td>
											<td>$cityFee.conHeavy</td>
											<td>$cityFee.conFee</td>
										</tr>
										#end
										
									#else
										
											#set($feeOrders = $orderFeeMap.get($item))
											<tr>
												<td>会员等级</td>
							   		 			<td>订单金额</td>
							   		 			<td>运费(¥)</td>
											</tr>
											#foreach($fo in $feeOrders)
											<tr>
												<td>$!fo.userLevel</td>
							   		 			<td>$!fo.orderFee</td>
							   		 			<td>$!fo.expFee</td>
											</tr>
											#end
											
									#end
		   		 				</table>
		   		 			</td>
		   		 			<td width="35%">
			   		 			模板名称： $!item.name &nbsp;&nbsp;#if($!item.isDefault)<span class="bg-green-jungle bg-font-green-jungle bold">默认设置</span>#end <br/>  
			   		 			最后修改时间： $!item.updateTime <br/>
			   		 			运费计算方式：#if( $!item.calcTye==0)按订单金额计费 #else 按货品运费模板计费 #end <br/>
			   		 		    #if($item.calcTye==1 ) 
			   		 			体重系数：$!item.coefficient<br/>
			   		 			#end
			   		 			#if(!$!item.isDefault)
			   		 				#if($item.calcTye==1 ) 
				   		 			<a href="/expfeeTemplate/edit?id=$!item.id" class="btn green btn-outline btn-sm ajaxify" >
									<i class="fa fa-edit"></i> 编辑</a>
									#end
									
									<a href="javascript:;" thref="/expfeeTemplate/delete?id=$!item.id" class="btn green btn-outline btn-sm ajax-delete" >
									<i class="fa fa-trash"></i>删除</a>
									<a href="/expfeeTemplate/default?id=$!item.id" class="btn green btn-outline btn-sm ajaxify" >
									<i class="fa fa-trash"></i> 设置为默认</a>
								#end
	    						
		   		 			</td>
						</tr>
						
					</thead>
				</table>
				#end
			</div>
			 
		</div>
    </div>
</div>


